/* Copyright (c) 2019 the Octant contributors. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

body {
  --gutter-background-color: #eee;
  --gutter-background-hover-color: #0079b8;
  --statusContainer-bg-color: #eee;
}
body.dark {
  --gutter-background-color: #25333d;
  --gutter-background-hover-color: #495a67;
  --statusContainer-bg-color: #0f181c;
}
.resourceViewer {
  display: flex;
  flex-direction: row;

  .view-container {
    height: 100vh;
    width: 75%;
    overflow: auto;
    overflow-y: hidden;
  }

  .gutter {
    height: 100vh;
    width: 4px;
    flex: 1 1 4px;
    background: var(--gutter-background-color);
  }

  .gutter:hover {
    cursor: ew-resize;
    background: var(--gutter-background-hover-color);
  }

  .status-container {
    height: 100vh;
    width: 25%;
    padding: 1rem;
    background-color: var(--statusContainer-bg-color);
  }

  .node {
    cursor: pointer;
    fill: white;

    .label {
      fill: black;
    }

    &.selected {
      stroke: #003d79;
      stroke-width: 2.5px;
    }

    &-ok {
      rect {
        fill: #60b515;
      }
    }

    &-warning {
      rect {
        fill: #f57600;
      }
    }

    &-error {
      rect {
        fill: #e12200;
      }
    }
  }

  .edgePath {
    path.path {
      stroke: #003d79;
      stroke-width: 1.5px;
    }
  }

  .label {
    margin: 20px 0;
  }

  .resource {
    background-color: #fff;
    border: 1px solid black;
    padding: 25px 40px;
    position: relative;
  }

  .resource-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
  }

  .resource-type {
    color: white;
    font-size: 14px;
    font-weight: 200;
  }

  .resource-status {
    bottom: 0;
    height: 15px;
    left: 0;
    position: absolute;
    width: 100%;
    background-color: #eeeeee;
  }
}
